<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Mailgun, Postmark, AWS and more. This file provides the de facto
    | location for this type of information, allowing packages to have
    | a conventional file to locate the various service credentials.
    |
    */
    'host' => env('APP_HOST', 'localhost'),

    'version' => [
        'login' => 'wechat',
        'payment' => '',
        'transfer' => '',
    ],

    'mailgun' => [
        'domain' => env('MAILGUN_DOMAIN'),
        'secret' => env('MAILGUN_SECRET'),
        'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
    ],

    'postmark' => [
        'token' => env('POSTMARK_TOKEN'),
    ],

    'ses' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    ],

    'wechat' => [
        'appid' => env('WECHAT_APPID', 'wxb831fa507033254e'),
        'appsecret' => env('WECHAT_APPSECRET', 'a84c63670f2e0d2cac0f72392ef1c29f'),
    ],

    'encrypt' => [
        'status' => env('PROGRAM_ENCRYPT', false),
        'key' => env('PROGRAM_ENCRYPT_KEY'),
        'iv' => env('PROGRAM_ENCRYPT_IV'),
    ],

    'program' => [
        'title' => env('PROGRAM_TITLE', ''),
        'code' => env('PROGRAM_CODE', ''),
        'version' => env('PROGRAM_VERSION', ''),
        'ulinkid' => env('PROGRAM_ULINKID'),
        'appkey' => env('PROGRAM_APPKEY'),
        'download_app_url' => env('PROGRAM_APP_URL'),
    ],

    'whitelist' => env('PROGRAM_WHITELIST', '127.0.0.1'),

    'group_entry' => env('GROUP_ENTRY', ''),
    'oem' => [
        'status' => true,
        'account_id' => env('PROGRAM_OEM_ACCOUNT_ID'),
        'balance' => env('PROGRAM_OEM_BALANCE'),
        'lowest_balance' => 50,
    ],

    'payment' => [
        'kylin' => [
            'company_id' => env('KYLIN_PAYMENT_COMPANY_ID'),
            'sign_type' => env('KYLIN_PAYMENT_SIGN_TYPE'),
            'private_key' => env('KYLIN_PAYMENT_PRIVATE_KEY'),
        ],
        'direct' => [
            'md5' => env('DIRECT_PAYMENT_MD5', ''),
            'merchantNo' => env('DIRECT_PAYMENT_MERCHANT_NO', ''),
            'subMerchantId' => env('DIRECT_PAYMENT_SUB_MERCHANT_ID', ''),
        ],
    ],
];
